package com.atbun.commonutils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Description :返回简单响应结果
 * @Author : mayp
 * @Date: 2020-05-02 08:31
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResultObj {
    public static final ResultObj ERROR = new ResultObj(20001,"程序出错");
    public static final ResultObj REQUIRED_INFO_ERROR = new ResultObj(20001,"必填信息不能为空");
    public static final ResultObj PHONE_REGISTERED = new ResultObj(20001,"该号码已注册");
    public static final ResultObj CODE_ERROR = new ResultObj(20002,"验证码错误");
    public static final ResultObj PHONE_PASSWORD_NULL = new ResultObj(20001,"手机号或密码不存在");
    public static final ResultObj PHONE_NULL = new ResultObj(20001,"手机号不存在");
    public static final ResultObj PASSWORD_ERROR = new ResultObj(20001,"密码不正确");
    public static final ResultObj USER_DISBALED = new ResultObj(20001,"该用户已被禁用，请联系管理员");
    private Integer code = 20000;
    private String msg = "";
    private Object token = "";
    public ResultObj(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }
}
